package cn.zs.myfilesyn;

import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.support.v4.app.NotificationCompat;

public class NetListenService extends Service {
    public NetListenService() {
    }
    @Override
    public void onCreate() {
        super.onCreate();
      //  NotificationManager sNM = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
      //  NotificationCompat.Builder sBuilder = new NotificationCompat
       //         .Builder(NetListenService.this)
       //         .setSmallIcon(R.mipmap.ic_launcher)
       //         .setContentTitle("正在监听")
       //         .setContentText("已收到警报" + notificationCount + "条");
       // Intent resultIntent = new Intent(getApplicationContext(), MainActivity.class);
      //  PendingIntent resultPendingIntent = PendingIntent.getActivity(getApplicationContext(), 0, resultIntent, PendingIntent.FLAG_UPDATE_CURRENT);
      //  sBuilder.setContentIntent(resultPendingIntent);
       // sNM.notify(0, sBuilder.build());
    }
    @Override
    public IBinder onBind(Intent intent) {
        // TODO: Return the communication channel to the service.
        throw new UnsupportedOperationException("Not yet implemented");
    }
}
